package http

import (
	"gitee.com/captials-team/ubdframe/src/domain/configstc"
	"gitee.com/captials-team/ubdframe/src/domain/interfaces"
	"gitee.com/captials-team/ubdframe/src/pkg/gin_http"
	v1log "gitee.com/captials-team/ubdframe/src/pkg/logs"
	"github.com/gin-gonic/gin"
	"go.uber.org/dig"
)

type JobController struct {
	l    v1log.ILog
	conf *configstc.JobAppConfig
	mgr  interfaces.ItfWorker

	gin_http.ResponseController
}

func NewJobController(di *dig.Container, l v1log.ILog, conf *configstc.JobAppConfig, mgr interfaces.ItfWorker) *JobController {
	ctr := &JobController{
		l:    l,
		conf: conf,
		mgr:  mgr,
	}

	return ctr
}

// SearchJobs godoc
// @Summary      当前job列表
// @Description  当前job列表
// @Tags         admin
// @Produce      json
// @Param        param    body     reqdata.MetricDataReq  true  "查询参数"
// @fail 1 {object} respdata.ResponseData{} "重置失败"
// @success 200  {object} respdata.ResponseData{data=models.MetricData} "重置成功"
// @Router       /mag/jobs/search [post]
func (ctr *JobController) SearchJobs(ctx *gin.Context) {
	return
}
